<template>
    <div id="content"></div>
</template>

<script>
    import E from "wangeditor";
    export default {
        props:["onChangeContent"],
        mounted() {
            const editor =new E("#content")
            editor.config.onchange = ()=> {
          
                this.onChangeContent(editor.txt.html())
            }
            editor.create()
        },
    }
</script>

<style scoped>

</style>